﻿using Microsoft.CodeAnalysis;

namespace UIOC.Observable.CodeAnalysis.Diagnostics;

internal static class ROWInterfaceBasesDiagnostic {

    public const string DiagnosticId = "UIOCOBS0001";

    private const string Title = "ROW 基接口分析";
    private const string MessageFormat = "类型 '{0}' 的基接口中，第 {1} 个基接口 '{2}' {4}继承自 '{3}'";
    private const string Description = "ROW 基接口不符合 Base, ReadOnly, Observable, Writable 的格式";
    private const string Category = "Usage";

    public static readonly DiagnosticDescriptor Rule = new(
        DiagnosticId,
        Title,
        MessageFormat,
        Category,
        DiagnosticSeverity.Error,
        isEnabledByDefault: true,
        description: Description);
}